package com.jubaozan.service.platform.vo;

import com.jubaozan.feign.user.constants.UserTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName PlatformInfoVO
 * @Description 个体平台资料注册实体
 * @Author TanRuixiang
 * @Date 2020/9/17 16:50
 * @Version 1.0
 **/
@Data
@ApiModel(value = "个体平台资料注册实体对象", description = "个体平台资料注册实体对象")
public class PlatformInfoVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiParam(value = "用于前端页面跳转标签", example = "tag")
    private String tag;

    @NotNull(message = "申请平台类型不能为空")
    @ApiParam(value = "申请平台类型", example = "1")
    private Integer type;

    @NotNull(message = "手机号码不能为空")
    @ApiParam(value = "手机号码", example = "18569596673")
    private String mobile;

    @NotNull(message = "平台名称不能为空")
    @ApiParam(value = "平台名称", example = "XXX的店铺")
    private String title;

    @NotNull(message = "上传平台Logo不能为空")
    @ApiParam(value = "上传平台Logo", example = "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3926407720,2167302872&fm=26&gp=0.jpg")
    private String logo;

    @NotNull(message = "推荐人ID不能为空")
    @ApiParam(value = "推荐人ID", example = "123456")
    private Long refereeId;

    @NotNull(message = "推荐人名称不能为空")
    @ApiParam(value = "推荐人名称", example = "推荐人名称")
    private String refereeName;

    @NotNull(message = "appid不能为空")
    @ApiParam(value = "appid", example = "appid")
    private String appid;

    @NotNull(message = "openid不能为空")
    @ApiParam(value = "openid", example = "openid")
    private String openid;

    @NotNull(message = "昵称不能为空")
    @ApiParam(value = "昵称", example = "昵称")
    private String nick;

    @NotNull(message = "用户图像不能为空")
    @ApiParam(value = "用户图像", example = "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3926407720,2167302872&fm=26&gp=0.jpg")
    private String avatar;


    @ApiParam(value = "用户类型", example = "MOBILE")
    private UserTypeEnum userType;

    @ApiModelProperty(value = "unionid")
    @NotNull(message = "unionid不能为空")
    @ApiParam(value = "unionid", example = "oqXaH0_pMwRsvVK9YSrbbV-v0BE0")
    private String unionid;
}
